package cn.stylefeng.guns.modular.system.controller;


import cn.stylefeng.guns.sys.core.shiro.ShiroKit;
import cn.stylefeng.roses.core.base.controller.BaseController;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.xmlbeans.impl.regex.REUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("table_select")
public class TableSelectController extends BaseController {

    private String PREFIX = "/table_select/";


    /**
     * @author Y
     * @Date 2019-03-20
     */
    @RequestMapping("/product_table_select")
    public String productTableSelect(String condition) {
        return PREFIX + "product_table_select.html";
    }


    @RequestMapping("/salsTableSelect")
    public String salsTableSelect(String condition) {return  PREFIX + "sales_table_select.html";}

    @RequestMapping("/indentTableSelect")
    public String indentTableSelect(String condition,Long id){
        return  PREFIX + "indent_table_select.html";}

    @RequestMapping("/sendgood")
    public String sendgood(String condition){return  PREFIX + "sendgoods.html";}

    @RequestMapping("/inventoryList")
    public String inventoryList(String condition){
        super.setAttr("dept", ShiroKit.getUserNotNull().getDeptId());
        return  PREFIX + "inventory_order.html";}
    /**
     * @author Y
     * @Date 2019-03-20
     */
    @RequestMapping("/map_select")
    public String map_select() {

        return PREFIX + "map_select.html";
    }

    @RequestMapping("/sendIndentTableSelect")
    public String sendIndentTableSelect(@RequestParam("id") Long id){
        super.setAttr("id",id);
        return PREFIX + "indentOrder_send_select.html";
    }

}
